package cn.hznc.domain.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

/**
 * 程序表
 */
@Getter
@Setter
@Table(name = "t_program")
@TableName(value = "t_program")
public class ProgramEntity {

    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 主程序编码
     */
    @Column(name = "program_num", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String programNum;

    /**
     * 主程序名称
     */
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String name;

    /**
     * 主程序编码
     */
    @Column(name = "code", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String code;

    /**
     * 操作人
     */
    @Column(name = "operator", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String operator;

    /**
     * 描述
     */
    @Column(name = "description", type = MySqlTypeConstant.VARCHAR, length = 200)
    private String description;


    /**
     * 版本
     */
    @Column(name = "version", type = MySqlTypeConstant.INT, length = 11)
    private Integer version;


    /**
     *
     */
    @Column(name = "equipment_type_group", type = MySqlTypeConstant.VARCHAR, length = 100)
    @TableField(value = "equipment_type_group")
    private String equipmentTypeGroup;

    /**
     * 程序卡号
     */
    @Column(name = "program_cn", type = MySqlTypeConstant.VARCHAR, length = 100)
    @TableField(value = "program_cn")
    private String programCn;

    /**
     *
     */
    @TableField(exist = false)
    private String equipmentName;
}
